import 'package:event_bus/event_bus.dart';

class EventManager {
  factory EventManager() => _getInstance();

  static EventManager get instance => _getInstance();
  static EventManager? _instance;
  late EventBus eventBus;

  EventManager._internal() {
    eventBus = EventBus();
  }

  static EventManager _getInstance() {
    _instance ??= EventManager._internal();
    return _instance!;
  }
}
